<%@ page import="org.bjou.Job" %>
<%@ page import="org.bjou.Course" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'job.label', default: 'Job')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
	</head>
	<body>
		
		<div class="container">
		<div class="row">
		  <div class="twelve columns">
			<div class="box_c">
			  <div class="box_c_heading cf">
				<p><g:message code="default.jobcreate.label" args="[entityName]" /></p>
			  </div>
			  <div class="box_c_content">
				<!-- start -->
		
		<div id="create-job" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${jobInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${jobInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="save" >
				<fieldset class="form">
                                  
                                   
                                  
                                  <div class="fieldcontain ${hasErrors(bean: jobInstance, field: 'jobName', 'error')} ">
                                    <label for="jobName">
                                      <g:message code="job.jobName.label" default="Job Name" />

                                    </label>
                                    <g:textField name="jobName" value="${jobInstance?.jobName}"/>
                                  </div>
                                  
                                  <div class="fieldcontain ${hasErrors(bean: jobInstance, field: 'jobDscp', 'error')} ">
                                    <label for="jobDscp">
                                      <g:message code="job.jobDscp.label" default="Job Dscp" />

                                    </label>
                                    <g:textArea name="jobDscp" value="${jobInstance?.jobDscp}" rows="2" cols="10"/>
                                  </div>

                             
                                   <g:hiddenField name="courseName" value="${jobInstance?.courseName}" />
                                   <g:hiddenField name="majorLevel" value="${jobInstance?.majorLevel}" />
                                   <g:hiddenField name="courseProperty" value="${jobInstance?.courseProperty}" />
                                   <g:hiddenField name="courseType" value="${jobInstance?.courseType}" />
                                   <g:hiddenField name="examType" value="${jobInstance?.examType}" />
                                 
                                 
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="create" class="gh_button" value="${message(code: 'default.button.create.label', default: 'Create')}" />
				 <a href="#" onclick="javascript:history.back(-1);return false;" class="gh_button list">返回</a>
                                </fieldset>
			</g:form>
			<!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
	</body>
</html>
